package com.taxinfo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.taxinfo.pojo.dto.LoginDto;
import com.taxinfo.pojo.vo.LoginInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author : wanghy
 * @time : 2020-09-01 11:59
 */
@Repository
public interface LoginMapper extends BaseMapper<LoginInfo>  {

    LoginDto verifySelect(@Param("id") String username, @Param("password") String password);

    LoginDto getUserInfo(@Param("id")String username);

    int updateUser(@Param("verifyCode") String verifyCode,@Param("id") String username);

    LoginDto verifyCode(@Param("verifyCode")  String code, @Param("id") String username);

    void updatePassword(@Param("password") String password, @Param("id")String username);

    void updateBaseDate( @Param("baseDate")String baseDate,  @Param("id")String username);

    void updateSetting(@Param("ip")String ip,  @Param("token") String token, @Param("id")String username);
}
